package ro.upt.ac.cstaicu.analyze;


public class TarantulaTechnique extends SpectrumBasedFLTechnique {

	@Override
	public double computeSuspiciousness(Entity e, double totalPassed, double totalFailed) {
		return (e.getNoFailed() / totalFailed) / (e.getNoPassed() / totalPassed + e.getNoFailed() / totalFailed);
	}


	@Override
	public double computeSuspiciousnessSingleError(Entity e, double totalPassed) {
		return 1 / (e.getNoPassed() / totalPassed + 1);
	}
	
}
